import request from '@/utils/request'

// 查询增值服务订单(视频,听书)列表
export function listOrder(query) {
  return request({
    url: '/tongban/order/list',
    method: 'get',
    params: query
  })
}

// 查询增值服务订单(视频,听书)详细
export function getOrder(valueAddedServiceOrderId) {
  return request({
    url: '/tongban/order/' + valueAddedServiceOrderId,
    method: 'get'
  })
}

// 新增增值服务订单(视频,听书)
export function addOrder(data) {
  return request({
    url: '/tongban/order',
    method: 'post',
    data: data
  })
}

// 修改增值服务订单(视频,听书)
export function updateOrder(data) {
  return request({
    url: '/tongban/order',
    method: 'put',
    data: data
  })
}

// 删除增值服务订单(视频,听书)
export function delOrder(valueAddedServiceOrderId) {
  return request({
    url: '/tongban/order/' + valueAddedServiceOrderId,
    method: 'delete'
  })
}

// 导出增值服务订单(视频,听书)
export function exportOrder(query) {
  return request({
    url: '/tongban/order/export',
    method: 'get',
    params: query
  })
}
